<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" th:href="@{https://v3.bootcss.com/favicon.ico}">

<title>登录</title>
<!-- Bootstrap core CSS -->
<link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
<!-- Custom styles for this template -->
<link th:href="@{/css/signin.css}" rel="stylesheet">
<link
	th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}"
	rel="stylesheet">
<link th:href="@{https://v3.bootcss.com/examples/signin/signin.css}"
	rel="stylesheet">
</head>
<body>

	<div class="container">

		<form class="form-signin" th:action="@{/login}" action="#" th:object="${user}"
			method="POST">
			<h2 class="form-signin-heading" th:text="登录"></h2>
			
			<label for="inputUserName" class="sr-only" th:text="用户名"></label>
			 <input	type="text"  id="inputUserName" name="username"  class="form-control"  th:placeholder="用户名"  
			 th:field="*{name}" > 
			 
			<label for="inputPassword"	class="sr-only" th:text="密码"></label> 
			<input type="password"  id="inputPassword" name="password" class="form-control"  th:placeholder="密码"
			th:field="*{passWd}" >
			<div class="checkbox">
				<label> <input type="checkbox" name="remember">记住我
				</label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
			<p class="text-muted">2017-2021</p>
			<a class="btn btn-sm">中文</a> <a class="btn btn-sm">英文</a> <a
				th:href="@{/register}">注册</a> <br> <br> <a th:href="@{/}">返回首页</a>
		</form>

	</div>
	<!-- /container -->

</body>
</html>